<template>
  <a-layout style="height: 100%;" class="pscgo_layout">
    <a-layout-sider style="width: 100px;height: 100%;" hide-trigger collapsible class="sider_bar">
      <div class="logo">
        <a-image :src="logo" width="60" />
      </div>
      <SiderBar />
    </a-layout-sider>
    <a-layout style="padding-left: 120px;">
      <a-layout-header style="padding-left: 20px; padding-right: 20px;">
        <PscgoHeader />
      </a-layout-header>
      <a-layout style="padding: 0 24px;">
        <a-layout-content class="pscgo_layout_content" id="content_box">
          <router-view v-slot="{ Component }">
              <keep-alive>
                <component :is="Component"/>
              </keep-alive>
          </router-view>
      </a-layout-content>
      </a-layout>

    </a-layout>
  </a-layout>
  <!-- <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/> -->
</template>

<script setup>
// import HelloWorld from './components/HelloWorld.vue'
import logo from '@/assets/logo_pscgo.png'
import SiderBar from '@/components/SiderBar.vue'
import PscgoHeader from '@/components/PscgoHeader.vue'
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
</style>
<style scoped>

.sider_bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  height: 100%;
  transition: all .2s cubic-bezier(.34,.69,.1,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  margin-top: 20px;
}
.pscgo_layout {
  width: 100%;;
  height: 100%;
}
.pscgo_layout_content {
  position: relative;
  height: 100%;
}
</style>
